﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace SDSystem.Models
{
    class DirectorateMeta
    {
        [ScaffoldColumn(false)]
        public int DirectorateId { get; set; }

        [StringLength(255, ErrorMessage = "Directorate Name must contain at least 1 character", MinimumLength = 1)]
        [Required(ErrorMessage = "Directorate Name is required")]
        public string DirectorateName { get; set; }

        [StringLength(255, ErrorMessage = "Address Line 1 must contain at least 1 character", MinimumLength = 1)]
        [Required(ErrorMessage = "Address Line 1 is required")]
        public string AddressLine1 { get; set; }

        [Required(ErrorMessage = "Post Code is required")]
        public string PostCode { get; set; }

        [Required(ErrorMessage = "Type Of Business is required")]
        public int BusinessId { get; set; }
    }
}
